@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Regular.ttf')  format('truetype'), 
}
@font-face {
  font-family: 'OpenSansBold';
  src: url('../fonts/OpenSans-Bold.ttf')  format('truetype'), 
}

$mainColor: #17AEDF;
$mainFontSize: 14px;

%fontBold {
  font-family:OpenSansBold;
}

%transition {
  transition: all 0.2s ease-in 0.1s;
}

@mixin border-radius($radius) {
  -webkit-border-radius: $radius !important;
  border-radius: $radius !important;
  background-clip: padding-box;
}

.btn{
  &.btn-primary {
    color:$mainColor !important;
    border:1px solid $mainColor !important;
    border-radius: 0 !important;
    background: none !important;
    /* transition: background 0.3s ease-in 0.1s !important; */
    /* transition: all 0.3s ease-out 0.5s; */
    &:hover {
      color:#fff !important;
      background:$mainColor !important;
    }
  }

}

.img-size-middle {
  max-width: 600px;
  margin:0 auto;
}

body {
  font-size:$mainFontSize;
}

.region {
  padding:60px 0 75px;
  .title-big {
    color:#333;
    font-size:280%;
    margin:0 0 55px;
    text-align:center;
  }
  .title {
    color:#333;
    font-size:195%;
    margin:30px 0 20px;
  }
  &.with-lead {
    .title-big {
      margin-bottom:15px;
    }
    .lead {
      font-size:100%;
      margin-bottom:55px;
    }
  }
}

.bg-highlighted {
  background:#EDEDED !important;
}

.table  {
  table {
    width:100%;
    td {
      padding:5px;
      width:33.3%;
    }
  }
}

.skills .panel-title a{
  background:url("images/arrow-right.png") no-repeat scroll 100% -20px #EDEDED !important;
}
.skills .panel-title .collapsed{
  background:url("images/arrow-right.png") no-repeat scroll 100% 13px #EDEDED !important;
}
.companyTasks{
  margin-top:40px !important;
}

.box-highlighted {
  color:#fff !important;
  background:$mainColor !important;
}
.btn-big {
  display:inline-block;
  a {
    font-size:18px !important;
    @extend .box-highlighted;
    @include border-radius(0);
    padding:15px 40px !important;
    margin-right:10px;
    border:none !important;
  }
}

.border-top {
  border-top:1px solid #ccc;
}

a {
  @extend %transition;
}
a:hover {
  text-decoration:none;
}
p {
  margin:0 0 15px;
}
b, strong {
  @extend %fontBold;
}

header {
  padding:30px 0 25px;
  h1 {
    margin:0;
  }
}

#mainmenu {
  margin-top:15px;
  li {
    &.active {
      a {
        color:$mainColor;
      }
    }
    a {
      color:#666;
      font-size:90%;
      &:hover {
        color:$mainColor;
      }
    }
    ul.dropdown-menu{
      display: none;
      margin:0;
      padding:5px 0;
      background: rgba($mainColor,0.8);
      border:1px solid #eee;
      width:190px;
      z-index:9999;
      li{
        a{
          color:#fff;
          padding:5px 20px 5px 10px;
          background:none;
          display:block;
          &:hover {
            color:#333;
          }
        }
      }
    }
    &.menu-item-has-children:hover{
      ul.dropdown-menu{
        display:block;
      }
    }
  }
}

#mainVisual {
  background:url(../../images/main-visual.jpg) 50% 0 repeat-x; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  /* height:430px; */
  color:#fff;
  width:100%;
  overflow:hidden;
  position:relative;
  .jumbotron  {
    padding:0;
    margin:0;
    height:auto;
    width:100%;
  }
  h2 {
    font-size: 385%;
    width:100%;
    margin:0;
    text-transform:uppercase;
  }
  p {
    font-size: 150%;;
    margin:0;
    width:100%;
    a {
      color:#fff;
      font-size:90%;
      line-height:100%;
      border:2px solid #fff;
      text-transform:uppercase;
      padding:9px 20px 8px;
    }
  }
  #da-slider {
    width:1170px;
    margin:0 auto;
    position:relative;
  }
}

.home .workWithUs {
  img {
    max-height: 93px;
  }
}

.recruitment {
  .btn {
    color:#444;
    font-size:110%;
    border:1px solid #444;
    padding:10px 5px;
    margin:0 20px 40px;
    width:175px;
    height:70px;
    white-space:normal;
    line-height:1.6;
    overflow:hidden;
    position:relative;
    transition: all 0.3s ease-in 0.1s;
    span {
      display:block;
      color:#fff;
      background:$mainColor;
      font-size:185%;
      position:absolute;
      width:175px;
      height:70px;
      top: -70px;
      left:-1px;
      opacity: 0;
      padding-top:10px;
      transition: all 0.3s ease-in 0.1s;
    }
    &:hover{
      border-color:$mainColor;
      transition-delay: 0s; 
      span {
        opacity: 1; 
        top: -1px; 
        transition-delay: 0s; 
        animation: bounceY 0.9s linear;
      }
    }
  }
}

.services {
  .col-lg-20 {
    float:left;
    width:20%;
    padding:0 10px;
    text-align:center;
    font-size:$mainFontSize * 0.9;
    color:#666;
    line-height:160%;
    .title {
      font-size:$mainFontSize * 1.2;
      font-weight:bold;
      line-height:170%;
    }
    .thumb {
      min-height:120px 
    }
  }
  .media-object {
    margin:5px 30px 0 0;
  }
  .svg {
    path, polygon {
      @extend %transition;
    }
  }
  .media:hover {
    a {
      color:$mainColor;
    }
    .svg {
      path, polygon {
        fill: $mainColor;
      }
    }
  }
  .media-heading {
    margin:0 0 10px;
    a {
      color:#333;
      font-size:80%;
    }
  }
}

.statistic {
  color:$mainColor;
  border-top:1px dotted #EBEBEB;
  padding:10px 0 20px;
  p {
    width:30%;
    display:inline-block;
    margin:0;
    font-size:125%;
    span {
      @extend %fontBold;
      font-size:415%;
      display:block;
    }
  }
}

.partners {
  .row {
    margin-top:30px;
    a {
      /* display:inline-block; 
      float:left;*/
      margin:0 40px;
    }
  }
}

.social-activities, .gallery-list {

  ul {
    padding:15px 0 0;
    margin:0;
    li {
      width:24.5% !important;
      list-style: none;
      margin:0;
      display: inline-block;
      float:none !important;
      overflow: hidden;
      a {
        display:block;
        margin:0 2px 5px;
        overflow:hidden;
        position:relative;
        transition: all 0.3s ease-in 0.1s;
        span {
          display:block;
          color:#fff;
          background-color:#000;
          background-image:url(../../images/zoom.png);
          background-repeat:no-repeat;
          background-position:150% 150%;
          font-size:140%;
          position:absolute;
          width:280px;
          height:186px;
          padding:35px 10px 0;
          top: 0;
          left:0;
          right:0;
          bottom:0;
          opacity: 0;
          transition: all 0.3s ease-in 0.1s;
          -moz-transition: all 0.3s ease-in 0.1s;
          -ms-transition: all 0.3s ease-in 0.1s;
          -o-transition: all 0.3s ease-in 0.1s;
          -webkit-transition: all 0.3s ease-in 0.1s;
        }
        &:hover{
          transition-delay: 0s;
          span.img-holder {
            
          }
          span {
            opacity: 0.8; 
            transition-delay: 0s; 
            animation: bounceY 0.9s linear;
            background-position:95% 95%;
          }
        }
      }
    }
  }
}

#staffComment{
  padding: 50px 0 75px 0 !important;
  h3{
    margin-bottom: 50px;
  }
  .widgettitle{
    display:none;
  }
  .widget{
    display:table;
    text-align:center;
    width:1170px;
    margin-left:-15px;
    .staff-item{
      width: 212px;
      display: inline-block;
      margin: 0 9px;
      a{
        display:block;
        position:relative;
        span{
          color:#fff;
          display:block;
          padding: 1px 5px;
          bottom:0;
          right:0;
          position:absolute;
          font-size:75%;
          text-transform:uppercase;
          background:$mainColor;
          white-space:nowrap
        }
      }
      .caption{
        display:table-cell;
        vertical-align:top;
        height:200px;
        color:#666;
        padding:0 14px;
        border:1px solid $mainColor;
        font-size:90%;
        position:relative;
        .readmore {
          position:absolute;
          bottom:10px;
          right:10px;
          color: $mainColor;
        }
        h3{
          color:#E93F0D;
          text-transform:uppercase;
          font-size:110%;
          margin-top:16px;
          margin-bottom:7px;
          line-height:145%;
        }
        .lcp_customfield{
          font-style:italic;
          color:#999;
          font-size:85%;
          line-height:100%;
        }
        p{
          line-height:135%;
          margin-bottom:0 0 14px 0;
        }
      }
    }
  }
}

footer {
  color:#fff;
  background:#333;
  position:relative;
  .container {
    height:290px;
  }
  .region {
    position:absolute;
    top:0;
    left:0;
    right:0;
    z-index:2;
    background:url(../../images/bg-transperancy.png); 
    .title {
      color:#fff;
      font-size:155%;
      margin:0 0 20px;
    }
    .content {
      font-size:90%;
      iframe {
        background:#fff;
      }
    }
  }
  ul.footermenu {
    margin:0;
    padding:0;
    li {
      list-style:none;
      float:left;
      width:50%;
      margin-bottom:10px;
      a {
        color:#fff;
        &:hover {
          color:$mainColor;
        }
      }
    }
  }
  .btn-map {
    margin-top:31px;
  }
  .partners {
    margin-top:30px;
    a {
      margin-right:20px;
    }
  }
  #companyMap {
    height:429px;
    width:100%;
  }
  #btnHideMap {
    position:absolute;
    top:5px;
    left:47%;
    display:none;
    background:$mainColor;
    color:#fff;
    border:1px solid #333;
  }
}

.copyright {
  color:#999;
  text-align:center;
  font-size:90%;
  margin:0;
  padding:15px 0;
}

/* general layout */
#breadcrumb {
  background:#F7F7F7;
  font-size:90%;
}
.breadcrumb {
  margin:0;
  padding:16px 0px !important;
  background:none !important;
}
.entry-header {
  padding:0;
  border-bottom:3px solid #eee;
  .entry-title {
    color:$mainColor;
    font-size:40px;
    text-align:center;
    padding:40px 0 30px;
    margin:0;
  }
}

/* JSN pages */
.jsn-bootstrap3 {
  > .row {
    padding-top:45px !important;
    padding-bottom:70px !important;
  }
  > .row.content-block-top {
    padding-bottom:0 !important;
  }
  > .row.content-block-bottom {
    padding-top:0 !important;
  }

  p {
    line-height:180%;
  }
}

#mainbody .page-sub-title, .ig-element-heading.title-region h3 {
  font-size:28px;
  text-align:center;
  margin:0 0 20px;
}

.jsn-master {
  .jsn-caption {
    font-size:90%;
    font-style:italic;
  }
  .jsn-bootstrap3 {
    > .row {
      > .col-md-6:first-child {
        padding-right:7px;
      }
      > .col-md-6:last-child {
        padding-left:7px;
      }
    }
  }
}

/*=== JSN widget template ===*/
/* Accordion */

/* Image fancy box */
.rsgallery {
  &.gallery-center {
    text-align:center;
  }
  &.gallery-left {
    text-align:left;
  }
  &.gallery-right {
    text-align:right;
  }
  .rsg_item {
    display:inline-block;
    margin:10px;
  }
}

/*=== Tuyen Dung page ===*/
/* Moi truong lam viec */
#contentMediaBlock {
  .ig-element-image {
    width:205px;
    height:135px;
    overflow:hidden;
    float:right;
    margin-top:10px !important;
    margin-bottom:7px !important;
    margin-left:10px !important;
    margin-right:10px !important;
    img {
      width:205px;
      height:135px;
    }
  }
}
/* Che do dai ngo */
.panel-group{
  margin:0 auto;
}
.jsn-bootstrap3{
  > .panel-group{
    > .panel{
      border-radius:0px !important;
      box-shadow:none !important;
    }
  }
  .panel-heading{
    border-top-left-radius:0px !important;
    padding:0px !important;
    background:none !important;
    border-bottom:1px dashed #dddddd !important;
    background:url(images/arrow-left.png) no-repeat 10px 13px !important;
  }
  .panel-collapse{
    > .panel-body{
      border-top:0px !important;
      padding-left:30px;
      padding-right:30px;
    }
  }
  .icon-user:before{
    content:none !important;
  }
}

.jsn-bootstrap3 {
  .panel-default{
    border:0px !important;
  }
  .panel-title{
    .collapsed{
      background:url(images/arrow-right.png) no-repeat 100% 13px;
    }
    > a{
      background:url(images/arrow-right.png) no-repeat 100% -20px;
      display:block;
      padding:15px;
      &:hover{
        text-decoration:none !important;
      }
    }
  }
}
a, .services .svg path, .services .svg polygon{
  transition:none !important;
}
/* Vi tri tuyen dung */
#recruitment-block {
  @extend .recruitment;
  .btn {
    color:#fff!important;
    border:2px solid #99DBF1 !important;
    border-radius: 0 !important;
    span {
      color:#444 !important;
      background:#ededed !important;
    }
    &:hover{
      border-color:$mainColor !important;
    }
  }
  p br, h2 {
    visibility: hidden !important;
    display: none !important;
    margin: 0  !important;
  }
  p {
    text-align: center;
    padding-top: 30px;
  }
}
/* Tieng noi nhan vien */


/* Ho so cong ty */
.table.table-hosocongty {
  margin-top:30px;
  
  tr {
    > td:first-child {
      width:20%;
    }
    td {
      padding:15px;
      vertical-align:top;
    }
  }
}

/* gallery detail post */
.post-gallery {
  text-align: center;
  section {
    border: none !important;
  }
}
$borderColor: #CCCCCC;

@mixin ulFadeInDown{
  padding:15px 0 0;
  overflow:hidden;
  clear:both;
  margin:0;
  padding-bottom:40px;  
  li {
    width:25%;
    float:left;
    list-style: none;
    height: 185px;
    a {
      display:block;
      border-left:1px solid #fff;
      border-bottom:1px solid #fff;
      overflow:hidden;
      position:relative;
      transition: all 0.3s ease-in 0.1s;
      img {
        transition: all 0.2s linear;
      }
      span {
        display:block;
        color:#fff;
        background-color:#000;
        background-image:url(../../images/zoom.png);
        background-repeat:no-repeat;
        background-position:150% 150%;
        font-size:160%;
        position:absolute;
        width:285px;
        height:189px;
        padding:35px 10px 0;
        top: 0;
        left:0;
        opacity: 0;
        transition: all 0.3s ease-in 0.1s;
      }
      &:hover{
        transition-delay: 0s;
        img {
          transform: scale(1.1);
        }
        span {
          opacity: 0.8; 
          transition-delay: 0s; 
          animation: bounceY 0.9s linear;
          background-position:95% 95%;
        }
      }
    }
  }    
}
.page-content{
  text-align:center;
  padding:40px 0 75px;

  .container{
    .page-title{
      color:$mainColor;
      margin:0px;
      font-size:303%;
      border-bottom:3px #EEEEEE solid;
      padding-bottom:30px;
    }
    section{
      h3 {
        margin: 45px 0 20px 0; 
        font-size: 28px;
      }
      border-bottom:1px $borderColor solid;
      .lead{
        color:#444;
        font-size:$mainFontSize;
        width:850px;
        margin:0 auto;
        margin-bottom:20px;
      }
      &:last-child{
        border-bottom:none;
      } 
      ul.gallery{@include ulFadeInDown;}
    }
  }
}

.single-post #mainbody .lead {
  width:90%;
}
/* Tuyen dung nhan vien */
#nhanvien-kynang{
  > .panel-group{
    .panel-default{background:none !important;}
    .panel-default:first-child{
      .panel-heading{
        background:url(images/staff-arrow-left.png) no-repeat 10px 0px !important;
        padding-left:20px !important;
      }
    }
    .panel-default:last-child{
      .panel-heading{
        background:url(images/staff-arrow-left.png) no-repeat 10px -48px !important;
        padding-left:20px !important;
      }
    }
  }
}  

/* tin tuc */
.news-list {
  ul {
    list-style-type: none;
    margin-bottom: 60px;
    li {
      text-align: left;
      font-size: 16px;
      border-bottom: 1px solid #eee;
      span{
        color: #aaa;
        border-bottom: 3px solid #eee;
        display: inline-block;
        line-height: 55px;
        width: 100px;
        margin-right: 30px;
      }
      a {
        color: #333;
        display: inline-block;
        line-height: 57px;
        &:hover {
          color: $mainColor;
        }
      }
      &:hover {
        border-bottom-color: $mainColor;
        span {
          color: $mainColor;
          border-bottom-color: $mainColor;
        }
        a {
          color: $mainColor;
        }
      }
    }
  }
}
.news-date {
  display: inline-block;
  background:url(../../images/date-icon.png) no-repeat 0 3px !important;
  padding-left: 20px;
  margin-bottom: 10px;
  color: #aaa;
  font-size: 13px;
}
.news-detail {
  text-align: left;
  .news-content {
    overflow: hidden;
  }
}
.news-widget {
  h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    margin-top: 50px;
    text-align: left;
  }
  ul {
    padding: 0;
    list-style-type: none;
    text-align: left;
    li {
      overflow: hidden;
      margin-bottom: 15px;
      border-bottom: 1px solid #eee;
      padding-bottom: 10px;
      img{
        width: 100%;
      }
      span {
        display: block;
        margin-top: 10px;
      }
      a {
        display: inline-block;
        color: #666;
        font-weight: bold;
        &:hover {
          color: $mainColor;
        }
      }
    }
  }
}
.news-home {
  padding-bottom: 0;
  .container {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
  }
  ul {
    list-style-type: none;
    li {
      h3 a {
        font-size: 15px;
        color: #666;
        font-weight: bold;
        &:hover {
          color: $mainColor;
        }
      }
      span {
      }
      p {
        font-size: 13px;
        color: #aaa;
      }
    }
  }
  .link {
    text-align: center;
  }
}

.video {
  background:#000;
}

#sidebar {
  font-size:90%;
  .recruitment-other{
    .widget-content{
      ul{
        li{
          margin:0;
          padding:13px 0 16px 13px;
          border-bottom:1px solid #fff;
          background-color:#F3FCFE;
          a{
            color:$mainColor;
            font-weight:normal;
            padding:1px 0 1px 28px;
            background:url(images/recruitment-other.png) no-repeat 0% 0%;
            &:hover{
              color:#333;
              background:url(images/recruitment-other.png) no-repeat 0% -61px;
            }
          }
        }
      }
    }
  }
}

/* colorbox */
div#cboxOverlay {
  background:#000;
}
div#colorbox {
  #cboxTitle {
    color:#fff;
  }
}

/* form */
.visual-form-builder{
  width:620px;
  margin:0 auto !important;
  padding-top:30px;
  padding-bottom:40px;
  .vfb-fieldset{
    background:none;
    border:none;
    margin:0;
    ul{
      li{
        float:right;
        padding:0 !important;
        margin-bottom:12px !important;
        .vfb-desc{
          display:inline-block;
          font-weight:normal;
          .vfb-required-asterisk{
            color:#D93600;
          }
        }
        .vfb-text, .vfb-submit, .vfb-select{
          height:35px;
        }
        .vfb-desc{
          padding-top:10px !important;
        }
        .vfb-select{
          border: 1px solid #ddd;
          box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
          padding:6px 0;
          transition: border 0.2s linear 0s, 
        }
        .vfb-textarea{
          height:147px;
        }
        .vfb-text, .vfb-textarea, .vfb-select{
          width:420px;
          float:right;
          border-radius:0;
          background:#eee;
          margin-left:27px;
        }
        div{
          display:inline;
        }
        &:last-child{
          margin-bottom:8px !important;
        }
        .vfb-submit {
          width:100px;
          background:$mainColor;
          color:#fff;
          border:none;
          margin-right:320px;
        }
      }
    }
    #vfb-3, .vfb-legend{
      display:none;
    }
    &.vfb-fieldset-2{
      ul{
        li{
          &:first-child{
            display:none !important;
          }
        }
      }
    }
  }
}

.staff-comment {
  article {
    margin-bottom: 40px;
    header {
      padding: 0 0 10px 0;
    }
    .media {
      img {
        width: 100%;
      }
    }
  }
}